<template>
  <div class="uip">
    <el-image
      :src="src"
      :preview-src-list="[src]"></el-image>
    <div class="close" @click="deleteImg">
      <i class="el-icon-circle-close"></i>
    </div>
  </div>
</template>

<script setup>
defineProps(['src'])

const deleteImg = () => {
  
}
</script>

<style lang="scss" scoped>
.uip{
  position: relative;
  display: inline-block;
  margin-right: $margin;
  cursor: pointer;
  overflow: hidden;
  .close{
    font-size: 20px;
    position: absolute;
    right: 12px;
    top: -100%;
    color: #fff;
    transition: all .4s;
  }
}
.uip:hover{
  .close{
    top: 6px;
  }
}
</style>